<?php
if( !ini_get('safe_mode')){
set_time_limit(0);
}else{
ini_set('max_execution_time',10000);
}
require'connect.php';
$qqselect_sql="select * from qqlist where gq=2";
$qqselect_result=mysql_query($qqselect_sql);
while($array=mysql_fetch_array($qqselect_result)){
$sid=$array['sid'];

//开启挂Q
$e=file_get_contents('http://pt.3g.qq.com/s?aid=nLogin3gqqbysid&3gqqsid='.$sid.'');
//开启状态为在线
$e=file_get_contents('http://q32.3g.qq.com/g/s?sid='.$sid.'&s=10&aid=chgStatus');
if(!$e){
echo '挂Q失败';
}else{
echo '挂Q成功';
}
}
?>